//
//  ForthView.swift
//  NavigationDemo
//
//  Created by hongyan.yang on 2022/5/10.
//

import SwiftUI

struct ForthView: View {

    @Environment(\.presentationMode) var presentationMode: Binding<PresentationMode>
    var body: some View {
        VStack {
            Text("4th view")
            Button("close", action: {
                presentationMode.wrappedValue.dismiss()
            })
        }
    }
}

struct ForthView_Previews: PreviewProvider {
    static var previews: some View {
        ForthView()
    }
}
